From: Carlos Garnacho Date: Mon, 21 Jan 2019 19:49:07 +0000 (+0100) Subject: windowManager: Disable bottom edge swipe gesture if OSK is enabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~31 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=699e97559d6eef7e9285290eb3c5ec6fb474ac63;p=gnome-shell.git windowManager: Disable bottom edge swipe gesture if OSK is enabled It does not make sense then, plus it eats events close to the edge. --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 8450cfd33..16239a255 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1071,6 +1071,10 @@ var WindowManager = class { gesture.connect('activated', () => { Main.keyboard.show(Main.layoutManager.bottomIndex); }); + Main.layoutManager.connect('keyboard-visible-changed', (manager, visible) => { + gesture.cancel(); + gesture.set_enabled(!visible); + }); global.stage.add_action(gesture); gesture = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode);